package com.bailun91.auth.controller;

import com.bailun91.auth.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin")
public class PermisstionController {

    @Autowired
    private PermissionService permissionService;

    /**
     * 更新shiro的全局权限
     */
    @RequestMapping("updateGlobalPermission")
    void updateGlobalPermission() {
        permissionService.updateGlobalPermission();
    }

}
